package com.ruoyi.wallet.api.domain;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.web.oldDomain.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * @Description: 用户钱包拓展对象 erp_distribution_user_wallet
 * @Author: j.zh
 * @Date: 2024/5/2
 * @Version: 4.0.0
**/
@Data
@EqualsAndHashCode()
@TableName("erp_distribution_user_wallet")
public class ErpDistributionUserWallet {

    private static final long serialVersionUID=1L;

    /**
     * 分销员钱包id
     */
    @TableId(value = "wallet_id")
    private Long walletId;
    /**
     * 分销员id
     */
    private Long distributionUserId;
    /**
     * 用户id
     */
    private Long userId;
    /**
     * 待结算金额
     */
    private BigDecimal unsettledAmount;
    /**
     * 可提现金额
     */
    private BigDecimal settledAmount;
    /**
     * 冻结金额
     */
    private BigDecimal freezeAmount;
    /**
     * 已失效金额
     */
    private BigDecimal invalidAmount;
    /**
     * 积累收益
     */
    private BigDecimal accrueAmount;
    /**
     * 测评金额
     */
    private BigDecimal evaluateAmount;
    /**
     * 钱包状态(-1 已冻结 0未生效(分销审核未通过) 1正常)
     */
    private Integer state;
    /**
     * 乐观锁
     */
    private String version;

}
